$(function() {
	// 兼容IE PlaceHolder
	$('input[type="text"],input[type="password"]').ASDPlaceHolder();
	
	var $form = $("#updatePwdForm");
	//保存
	$("#updatePwdSubBtn").click(function() {
		if($form.formValidate()==false){
			return;
		}
		// 点击确定确认登录请求后台
		var $pwd = $form.find('input[name="pwd"]');
		var $newpwd = $form.find('input[name="newpwd"]');
		$.post($basePath + "/pwd/update", {"pwd":$pwd.val(),"newpwd":$newpwd.val(),}, function(data) {
			if (data.success == true) {
				bootGrowl(data.resultValue, "success");
			} else {
				// 请求失败
				bootGrowl(data.resultValue,"danger");
			}
		});
	});
});